<?xml version="1.0" encoding="UTF-8"?>
<!--
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:p="http://primefaces.org/ui"
      xmlns:c="http://xmlns.jcp.org/jsp/jstl/core">
    <h:head>
        <title>TODO supply a title</title>
        <meta name="viewport" content="width=device-width"/>
    </h:head>
    <h:body>
        <h:form>
            <p:growl id="growlBack" showDetail="true" life="10000" autoUpdate="true"/>
            <h:panelGrid style="margin: 0 auto">
                <p:outputLabel value="BACK UP DEL MOTOR MYSQL" style="color: #2480BC;"/>
                <br></br>
                <br></br>
            </h:panelGrid>
            <p:outputPanel id="carDetail" style="margin: 0 auto" layout="block"> 
                <h:panelGrid columns="2" style="margin: 0 auto">
                <h:outputText value="Usuario SSH: " />
                <p:inputText value="#{backupBean.user}" id="us" required="true" requiredMessage="Por favor Ingrese el usuarioSSH"/>
                <h:outputText value="Password SSH: "/>
                <p:password value="#{backupBean.password}" id="pas" required="true" requiredMessage="Por favor Ingrese el PasswordSSH"/>
                <h:outputText value="Puerto SSH: "/>
                <p:inputText value="#{backupBean.port}" id= "por" required="true" requiredMessage="Por favor Ingrese el puertoSSH"/>
                <h:outputText value="Path: "/>
                <p:inputText value="#{backupBean.path}" id="pa" required="true" requiredMessage="Por favor Ingrese el PathSSH"/>
                <p:commandButton action="#{backupBean.makeBackup()}" value="Enviar" update="dumps,us,pas,por,pa"/>
                </h:panelGrid>
                <br></br>
                <br></br>
                <br></br>
                <br></br>
                <br></br>
                <br></br>
            </p:outputPanel>
             <h:panelGrid columns="1" style="margin: 0 auto">
                 <p:dataTable id="dumps" var="consistenceCheckResult" value="#{backupBean.dumps}">  
                    <p:column headerText="Rutas Dump">  
                        <h:outputText value="#{consistenceCheckResult}" />  
                    </p:column>   
                </p:dataTable>
             </h:panelGrid>
        </h:form>
    </h:body>
</html>
